'use strict'

const BaseController  = require('./base');

class LikeArticleController extends BaseController {
    async likeArticleListByUser(){
        const data = await this.ctx.service.likeArticle.likeArticleListByUser(this.ctx.request.body)
        this.success(data)
    }

    async changeLikeArticleStatus(){
        const data = this.ctx.service.likeArticle.changeLikeArticleStatus(this.ctx.request.body)
        this.success(data)
    }
}

module.exports = LikeArticleController;